# with debug symbols
CC = gcc -g

LIBS = `pkg-config gtk+-2.0 --libs`
CFLAGS = `pkg-config gtk+-2.0 --cflags` -I../libsynqrone

EXEC = synqrone

SRC = main.c win_main.c win_new.c win_about.c tree.c dialogs.c $(wildcard ../libsynqrone/*.c)
OBJS = $(SRC:.c=.o)

all: synqrone

.PHONY : distclean clean

synqrone: $(OBJS)
	$(CC) -o $(EXEC) $(OBJS) $(LIBS) $(CFLAGS)

# $(OBJS):$(SRC) is automatic, it uses $(CFLAGS)

distclean: synqrone 
	rm -f $(OBJS)
	strip $(EXEC)

clean: 
	rm -f $(EXEC) $(OBJS)

